import javax.ejb.EJB;

import org.x4444.Account;
import org.x4444.AccountClient;
import org.x4444.ClientAccount;
import org.x4444.Counter;
import org.x4444.CounterClient;
import org.x4444.Report;
import org.x4444.ReportClient;


public class Main {
	
	@EJB
	private static Account account;
	
	@EJB
	private static ClientAccount clientAccount;
	
	@EJB
	private static Counter counter;
	
	@EJB
	private static Counter counter2;
	
	@EJB
	private static Report report;
	
	public static void main(String[] args) {
		AccountClient ac = new AccountClient(account);
		ac.doIt();
		System.out.println(clientAccount.getName());
		new CounterClient(counter).doIt();
		new CounterClient(counter).doIt();
		new CounterClient(counter2).doIt();
		new CounterClient(counter2).doIt();
		new ReportClient(report).doIt();
	}
}
